import request from '@/plugins/axios'
import progressApis from './progress'


export default{
    ...progressApis,
    //总览
    overviewList(params={}) {
        return request.get('/model/overview', {params})
    },
    // 型号详情
    findByModelId(params) {
      return request.get('/model/findByModelId', {params})
    },
    // 添加
    overviewSave(params={}) {
        return request.post('/model/save', params)
    },
    // 删除
    overviewDelete(params={}) {
        return request.get('/model/deleteById', {params})
    },
    // 系统树列表
    sysList(params={}) {
        return request.get('/model/sysList', {params})
    },
    // 系统树列表
    deviceList(params={}) {
        return request.get('/model/deviceList', {params})
    },
    //子总览
    subOverviewList(params={}) {
        return request.get('/model/subOverview', {params})
    },

    // 待办通知列表
    pendingList(params = {}) {
      return request.get('/model/pending', {params})
    },

    //1.1.	设置业务跟踪是否完成-根据
    saveProgressRecord(params={}) {
        return request.post('/progressRecord/saveProgressRecord', params)
    },
    //1.1.	获取 业务跟踪
    selectLastByBillId(params={}) {
       return request.get('/progressRecord/selectLastByBillId', {params})
    },
    // 删除检测
    deleteCheck(params = {}) {
      return request.get('/model/deleteCheck', {params})
    },
    // 模型导入接口
    modelImportUrl: '/model/importExcel'
}